<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xml:space="default">
  <xsl:output method="xml" encoding="windows-1250" indent="yes"/>

  <xsl:param name="system"/>
  <xsl:param name="mambodir"/>
  
  <xsl:param name="modelnode"/>

  <xsl:template match="/">  
    <xsl:apply-templates select="$modelnode"/>
  </xsl:template>
  
  <xsl:template match="Model">
    <XDASettings>
      
      <Cache>
        <Concepts num="20"/>
        <ConceptViews num="20"/>
      </Cache>

      <Validate/>

      <DataSource>
        <XDADataSource handler="com.metada.mambo.datasource.SQLDB">
          <DSInit>
            <Type mapping="msaccess"/>        
            <!--
            <Conn url="jdbc:odbc:{$dbname}"/>
            -->
            <Conn url="jdbc:odbc:Driver={{Microsoft Access Driver (*.mdb)}};Dbq={$mambodir}{$system}\data\{@name}.mdb"/>
          </DSInit>
        </XDADataSource>
      </DataSource> 
    
      <Logging>
        <Log type="debug" use="no"/>
      </Logging>
    
      <AuthService>
        <Person xda="sm">
          <PersonBase concept="BS_Person" uid="ID_Person" login="login" passwd="passwd" attemptsleft="attemptsleft" disabled="disabled" pwdmodified="pwdmodified" authority="authority"/>
          <GroupRel concept="BS_PersGroup" uid="uid" gid="gid" from="from" to="to"/>
          <Defaults maxattempts="5" daysvalid="300"/>
        </Person>
        <ServiceRights active="true" xda="sm"/>
        <GeneralRights active="true" xda="sm"/>
        <ApplicationRights active="true" xda="sm"/>
      </AuthService>
    
      <DataTypeNicks>
        <Nick for="varchar" is="password"/>
        <Nick for="varchar" is="url"/>
        <Nick for="int" is="boolean"/>
        <Nick for="varchar" is="boolean_txt"/>
        <Nick for="varchar" is="xhtml"/>
      </DataTypeNicks>
    
    </XDASettings>
  </xsl:template>
</xsl:stylesheet>  